<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.

    This program and the accompanying materials are made available under the
    terms of the Eclipse Public License v. 2.0, which is available at
    http://www.eclipse.org/legal/epl-2.0.

    This Source Code may also be made available under the following Secondary
    Licenses when the conditions for such availability set forth in the
    Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
    version 2 with the GNU Classpath Exception, which is available at
    https://www.gnu.org/software/classpath/license.html.

    SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

-->

<!DOCTYPE html
      PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:mp="http://java.sun.com/mojarra/private/functions">
<head>
    <title>not rendered</title>
</head>
<body>
<!--
    NOTE: Content here is duplicated in facelet-dev-error.xml.
          If content is changed here, please see if the change
          is also applicable to facelet-dev-error.xml as well.
-->
    <ui:composition>
        <div id="javax.faces.error.xhtml" style="padding: 8px; margin: 10px 0; border: 1px solid #CCC; background-color: #f9f9f9;" >
        <h:outputScript>
        function faceletstoggle(id) {
            var style = document.getElementById(id).style;
            if ("block" == style.display) {
                style.display = "none";
                document.getElementById(id+"Off").style.display = "inline";
                document.getElementById(id+"On").style.display = "none";
            } else {
                style.display = "block";
                document.getElementById(id+"Off").style.display = "none";
                document.getElementById(id+"On").style.display = "inline";
            }
        }
        </h:outputScript>
        <c:set var="e" value="#{requestScope['javax.servlet.error.exception']}" scope="request" />
        <c:set var="uri" value="#{requestScope['javax.servlet.error.request_uri']}" scope="request" />
        <c:set var="errorView" value="#{requestScope['com.sun.faces.error.view']}" scope="request" />
            <div id="error" style="border: 1px solid #900;">
                <span style="text-decoration: none; color: #339;">URI: #{uri}</span>
                <br/>
                <span style="text-decoration: none; color: #339;">#{mp:writeMessage(facesContext.responseWriter, e)}</span>
            </div>
            <h2 style="font-size: large; color: #339;">
                <a style="text-decoration: none; color: #339;" href="#" onclick="faceletstoggle('trace'); return false;">
                    <span id="traceOff">+</span><span id="traceOn" style="display: none;">-</span> Stack Trace
                </a>
             </h2>
             <div style="padding: 8px; margin: 10px 0; border: 1px solid #CCC; background-color: #f9f9f9; display:none" id="trace"><pre><code>#{mp:writeException(facesContext.responseWriter, e)}</code></pre></div>
            <h2 style="font-size: large; color: #339;">
                <a style="text-decoration: none; color: #339;" href="#" onclick="faceletstoggle('tree'); return false;">
                    <span id="treeOff">+</span><span id="treeOn" style="display: none;">-</span> Component Tree
                </a>
            </h2>
            <div style="padding: 8px; margin: 10px 0; border: 1px solid #CCC; background-color: #f9f9f9; display:none" id="tree"><code>#{mp:writeComponent(facesContext.responseWriter, errorView)}</code></div>

            <h2 style="font-size: large; color: #339;">
                <a style="text-decoration: none; color: #339;" href="#" onclick="faceletstoggle('vars'); return false;">
                    <span id="varsOff">+</span><span id="varsOn" style="display: none;">-</span> Scoped Variables
                </a>
            </h2>
            <div style="padding: 8px; margin: 10px 0; border: 1px solid #CCC; background-color: #f9f9f9; display:none;" id="vars">#{mp:writeVariables(facesContext.responseWriter, facesContext)}</div>

            <div style="padding: 8px; margin: 10px 0; border: 1px solid #CCC; background-color: #f9f9f9; text-align: right; color: #666;">Generated by Mojarra/Facelets</div>

    </div>
    </ui:composition>
</body>
</html>
